package com.kaifa.org.tp04.example02;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

public class JuTes {
public static void main(String[] args) {
    ApplicationContext ac =new ClassPathXmlApplicationContext("jdbc.xml");
    JdbcTemplate jdbcTemplate=(JdbcTemplate)ac.getBean("jdbcTemplate");
    String sql="create table t_Product(id int primary key auto_increment," +
            "pro_name varchar(50)," +
            "pro_num int(10)," +
            "pro_price double(10,2))";
    jdbcTemplate.execute(sql);
}




}
